﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SpiderPlatform.Entity
{
    public class BindingEntity
    {
        public string item_number { get; set; }
        public string is_main { get; set; }
        public string channel_sku { get; set; }
        public int channel_id { get {
              
                switch (channel_type)
                {
                    case "yamibuy":
                        return 1;
                    case "oscart":
                        return 2;
                    case "ranch":
                        return 3;
                    case "redmall":
                        return 4;
                    default:
                        return 0;
                }
               
            } }
        public string channel_type { get; set; }
    }
}
